import request from '@/utils/request'

const prePath = '/use'

//仓库禁领产品-查询
export function getDepotProductForbiddenConfigPage(params) {
  return request({
    url: prePath + '/depotProductForbiddenConfig/page',
    method: 'get',
    params,
  })
}
//仓库禁领产品-查询详情
export function getDepotProductForbiddenConfigById(id) {
  return request({
    url: prePath + '/depotProductForbiddenConfig/' + id,
    method: 'get',
  })
}
//仓库禁领产品-新增
export function postDepotProductForbiddenConfig(data) {
  return request({
    url: prePath + '/depotProductForbiddenConfig',
    method: 'post',
    data,
  })
}
//仓库禁领产品-修改
export function putDepotProductForbiddenConfig(data) {
  return request({
    url: prePath + '/depotProductForbiddenConfig',
    method: 'put',
    data,
  })
}
//仓库禁领产品-删除
export function delDepotProductForbiddenConfig(data) {
  return request({
    url: prePath + '/depotProductForbiddenConfig',
    method: 'delete',
    data,
  })
}
//仓库禁领产品-启用
export function openDepotProductForbiddenConfig(data) {
  return request({
    url: prePath + '/depotProductForbiddenConfig/enabled',
    method: 'post',
    data,
  })
}
//仓库禁领产品-停用
export function stopDepotProductForbiddenConfig(data) {
  return request({
    url: prePath + '/depotProductForbiddenConfig/disabled',
    method: 'post',
    data,
  })
}

//获取领用单
export function getUseApplicationPage(params) {
  return request({
    url: prePath + '/applications/page',
    method: 'get',
    params,
  })
}
//获取领用申请单
export function getUseApplicationCustomizeList(data) {
  return request({
    url: prePath + '/application/customizeList/page',
    method: 'post',
    data,
  })
}
//领用申请单合单
export function useApplicationMerge(data) {
  return request({
    url: prePath + '/application/merge',
    method: 'post',
    data,
  })
}
//领用申请单拆单
export function useApplicationSplit(data) {
  return request({
    url: prePath + '/application/split',
    method: 'post',
    data,
  })
}
//获取领用退回出库单
export function getUseReturnExportCustomizeList(data) {
  return request({
    url: prePath + '/returnExport/customizeList/page',
    method: 'post',
    data,
  })
}
//获取领用模板
export function getUseTemplatesCustomizeList(data) {
  return request({
    url: prePath + '/templates/customizeList/page',
    method: 'post',
    data,
  })
}
//获取领用退回申请单
export function getUseReturnApplicationCustomizeList(data) {
  return request({
    url: prePath + '/returnApplication/customizeList/page',
    method: 'post',
    data,
  })
}
//获取领用出库单
export function getUseExportCustomizeList(data) {
  return request({
    url: prePath + '/export/customizeList/page',
    method: 'post',
    data,
  })
}

export function getUseApplicationDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/applicationDetail/customizeList/page',
    method: 'post',
    data,
  })
}

export function getUseApplicationDetailCustomizeListSumAmount(data) {
  return request({
    url: prePath + '/applicationDetail/sumAmount',
    method: 'post',
    data,
  })
}

//领用审核生成出库单添加产品弹窗查询明细，会过滤掉出库数量=申领数量的数据
export function getUseApplicationDetail(data) {
  return request({
    url: prePath + '/applicationDetail/getUseApplicationDetail',
    method: 'post',
    data,
  })
}

//获取领用出库明细
export function getUseExportDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/exportDetail/customizeList/page',
    method: 'post',
    data,
  })
}
export function getUseExportDetailCustomizeList(data) {
  return request({
    url: prePath + '/exportDetail/customizeList/all',
    method: 'post',
    data,
  })
}
//获取领用退回申请明细
export function getUseReturnApplicationDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/returnApplicationDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//获取领用退回出库明细
export function getUseReturnExportDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/returnExportDetail/customizeList/page',
    method: 'post',
    data,
  })
}
//获取领用人列表
export function getUseApplicationUser(params) {
  return request({
    url: prePath + '/applications/userList',
    method: 'get',
    params,
  })
}
//获取待审核领用单
export function getAuditUseApplicationPage(params) {
  return request({
    url: prePath + '/applications/page',
    method: 'get',
    params,
  })
}
//获取具体领用单
export function getUseApplication(id) {
  return request({
    url: prePath + `/application/${id}`,
    method: 'get',
  })
}

//获取根据主表ID获取子表所有数据
export function getUseApplicationDetailByOrderId(id) {
  return request({
    url: prePath + `/applicationDetail/queryByOrderId/${id}`,
    method: 'get',
  })
}

//获取具体领用退回申请单
export function getUseReturnApplication(id) {
  return request({
    url: prePath + `/returnApplication/${id}`,
    method: 'get',
  })
}

//获取具体领用退回申请单
export function getUseReturnApplicationFromExport(id) {
  return request({
    url: prePath + `/export/generateUseReturnExport/${id}`,
    method: 'get',
  })
}

//创建领用单
export function createUseApplication(data) {
  return request({
    url: prePath + '/application',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createUseApplicationAndSave(data) {
  return request({
    url: prePath + '/application/saveAndSubmit',
    method: 'post',
    data,
  })
}
//创建领用退回申请单
export function createUseReturnApplication(data) {
  return request({
    url: prePath + '/returnApplication',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createUseReturnApplicationAndSave(data) {
  return request({
    url: prePath + '/returnApplication/saveAndSubmit',
    method: 'post',
    data,
  })
}
//根据{id}获取一条数据
export function detailUseApplication(id) {
  return request({
    url: prePath + '/application/' + id,
    method: 'get',
  })
}
//根据{id}获取一条申请退回出库数据
export function detailUseReturnExport(id) {
  return request({
    url: prePath + '/returnExport/' + id,
    method: 'get',
  })
}
//根据{id}获取一条申请退回领用单数据
export function detailUseReturnApplication(id) {
  return request({
    url: prePath + '/returnApplication/' + id,
    method: 'get',
  })
}
//根据{id}获取一条出入库详情数据
export function detailUseExport(id) {
  return request({
    url: prePath + '/export/' + id,
    method: 'get',
  })
}
//修改领用单
export function updateUseApplication(data) {
  return request({
    url: prePath + '/application',
    method: 'put',
    data,
  })
}
//修改领用退回申请单
export function updateUseReturnApplication(data) {
  return request({
    url: prePath + '/returnApplication',
    method: 'put',
    data,
  })
}

//查询领用出入库产品存量列表
export function useApplicationDetailPage(params) {
  return request({
    url: prePath + '/applicationDetails/applicationDetailPage',
    method: 'get',
    params,
  })
}

//提交领用申请单
export function submitUseApplication(data) {
  return request({
    url: prePath + '/application/submit',
    method: 'post',
    data,
  })
}
//提交领用退回申请单
export function submitUseReturnApplication(data) {
  return request({
    url: prePath + '/returnApplication/submit',
    method: 'post',
    data,
  })
}

//撤回领用申请单
export function retractUseApplication(data) {
  return request({
    url: prePath + '/application/revoke',
    method: 'post',
    data,
  })
}
//撤回领用退回申请单
export function retractUseReturnApplication(data) {
  return request({
    url: prePath + '/returnApplication/revoke',
    method: 'post',
    data,
  })
}
//驳回领用申请单
export function rejectUseApplication(data) {
  return request({
    url: prePath + '/application/reject',
    method: 'post',
    data,
  })
}
//领用申请打印
export function getApplicationPrint(data) {
  return request({
    url: prePath + '/application/print',
    method: 'post',
    data,
  })
}
//领用审核打印
export function getAuditPrint(data) {
  return request({
    url: prePath + '/application/auditPrint',
    method: 'post',
    data,
  })
}
//领用入库打印
export function getExportPrint(data) {
  return request({
    url: prePath + '/export/print',
    method: 'post',
    data,
  })
}
//领用入库打印
export function getStorePrint(data) {
  return request({
    url: prePath + '/export/storePrint',
    method: 'post',
    data,
  })
}
//领用退回审核打印
export function getReturnApplicationPrint(data) {
  return request({
    url: prePath + '/returnApplication/print',
    method: 'post',
    data,
  })
}
//领用退回审核打印
export function getReturnAuditPrint(data) {
  return request({
    url: prePath + '/returnApplication/auditPrint',
    method: 'post',
    data,
  })
}
//领用退回入库打印
export function getReturnExportPrint(data) {
  return request({
    url: prePath + '/returnExport/print',
    method: 'post',
    data,
  })
}
//领用退回入库打印
export function getReturnStorePrint(data) {
  return request({
    url: prePath + '/returnExport/storePrint',
    method: 'post',
    data,
  })
}
//驳回领用退回申请单
export function rejectUseReturnApplication(data) {
  return request({
    url: prePath + '/returnApplication/reject',
    method: 'post',
    data,
  })
}
//审核领用单
export function auditUseApplication(data) {
  return request({
    url: prePath + '/application/ratify',
    method: 'post',
    data,
  })
}
//关闭领用申请单
export function stopUseApplication(data) {
  return request({
    url: prePath + '/application/stop',
    method: 'post',
    data,
  })
}
//领用审核-转申购单
export function generatePurchApplicationUseApplication(data) {
  return request({
    url: prePath + '/application/generatePurchApplication',
    method: 'post',
    data,
  })
}
//领用审核-转采购单
export function generatePurchOrderUseApplication(data) {
  return request({
    url: prePath + '/application/generatePurchOrder',
    method: 'post',
    data,
  })
}
//领用退回单批准
export function reverseAuditUseApplication(data) {
  return request({
    url: prePath + '/returnApplication/ratify',
    method: 'post',
    data,
  })
}
//领用退回单生成出库单
export function exportAuditUseApplication(data) {
  return request({
    url: prePath + '/returnExport/createOutBound',
    method: 'post',
    data,
  })
}
export function deleteUseApplication(data) {
  return request({
    url: prePath + '/application',
    method: 'delete',
    data,
  })
}
export function deleteUseReturnApplication(data) {
  return request({
    url: prePath + '/returnApplication',
    method: 'delete',
    data,
  })
}

//校验是否能拣货
export function validateDownShelf(data) {
  return request({
    url: prePath + '/application/validateDownShelf',
    method: 'post',
    data,
  })
}

//获取领用单明细
export function getUseApplicationDetailAll(params) {
  return request({
    url: prePath + '/applicationDetails/all',
    method: 'get',
    params,
  })
}
export function getUseApplicationDetailCustomizeList(data) {
  return request({
    url: prePath + '/applicationDetail/customizeList/all',
    method: 'post',
    data,
  })
}
export function getUseTemplateDetailCustomizeList(data) {
  return request({
    url: prePath + '/templateDetails/customizeList/all',
    method: 'post',
    data,
  })
}
//获取领用退回明细列表数据
export function getUseReturnApplicationDetailCustomizeList(data) {
  return request({
    url: prePath + '/returnApplicationDetail/customizeList/all',
    method: 'post',
    data,
  })
}

//获取从领用入库获取的明细
export function getUseReturnApplicationDetailCustomizeListByExport(data) {
  return request({
    url: prePath + '/returnApplicationDetail/customizeListByExport/all',
    method: 'post',
    data,
  })
}

//获取领用申请明细分组
export function getUseApplicationDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/applicationDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//获取领用出入库明细分组
export function getUseExportDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/exportDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//获取领用退回申请明细分组
export function getUseReturnApplicationDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/returnApplicationDetail/customizeGroups',
    method: 'post',
    data,
  })
}
//获取领用退回出库明细分组
export function getUseReturnExportDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/returnExportDetail/customizeGroups',
    method: 'post',
    data,
  })
}

//获取领用退回出库明细列表数据
export function getUseReturnExportDetailCustomizeList(data) {
  return request({
    url: prePath + '/returnExportDetail/customizeList/all',
    method: 'post',
    data,
  })
}

//获取领用单出库明细，已全部出库的行，不用在前端显示
export function getExportDetailAll(params) {
  return request({
    url: prePath + '/applicationDetails/allExportDetail',
    method: 'get',
    params,
  })
}

//获取领用单出库明细，包含领出仓库数量
export function getExportDetailAllExt(params) {
  return request({
    url: prePath + '/applicationDetails/allExportDetailExt',
    method: 'get',
    params,
  })
}

//领用模板分页
export function getUseTemplatePage(params) {
  return request({
    url: prePath + '/templates/page',
    method: 'get',
    params,
  })
}

//获取领用模板
export function getUseTemplate(id) {
  return request({
    url: prePath + `/templates/${id}`,
    method: 'get',
  })
}

//领用申请领用出库获取领出出库
export function useApplicationGetDepots(params) {
  return request({
    url: prePath + '/application/useApplicationGetExportDepots/page',
    method: 'get',
    params,
  })
}
//领用审核生成出库单获取领出出库
export function useAuditGetDepots(params) {
  return request({
    url: prePath + '/application/useAuditGetExportDepots/page',
    method: 'get',
    params,
  })
}

//新增领用模板
export function createUseTemplate(data) {
  return request({
    url: prePath + '/templates',
    method: 'post',
    data,
  })
}

//更新领用模板
export function updateUseTemplate(data) {
  return request({
    url: prePath + '/templates',
    method: 'put',
    data,
  })
}

//删除领用模板
export function deleteUseTemplate(data) {
  return request({
    url: prePath + '/templates',
    method: 'delete',
    data,
  })
}

//领用模板明细全部
export function getUseTemplateDetailAll(params) {
  return request({
    url: prePath + '/templateDetails/merge',
    method: 'get',
    params,
  })
}

export function getUseTemplateById(id) {
  return request({
    url: prePath + '/templates/' + id,
    method: 'get',
  })
}

export function deleteUseExport(data) {
  return request({
    url: prePath + '/export',
    method: 'delete',
    data,
  })
}

export function cancelUseExport(data) {
  return request({
    url: prePath + '/returnExport',
    method: 'delete',
    data,
  })
}

//获取领用出库单
export function getUseExportPage(params) {
  return request({
    url: prePath + '/useExport/page',
    method: 'get',
    params,
  })
}
//获取领用出库单
export function getUseExportAll(params) {
  return request({
    url: prePath + '/useExport/all',
    method: 'get',
    params,
  })
}
// //获取具体领用出库单
// export function getUseExport(params) {
//     return request({
//         url : prePath + '/useExport/'+params,
//         method : 'get'
//     })
// }
//获取具体领用出库单
export function getUseExport(id) {
  return request({
    url: prePath + `/export/${id}`,
    method: 'get',
  })
}
//创建领用出库单
export function createUseExport(data) {
  return request({
    // url: prePath + '/useExport/save',
    url: prePath + '/export',
    method: 'post',
    data,
  })
}
//创建提交并出库
export function commitAndBatchOutBound(data) {
  return request({
    url: prePath + '/export/commitAndBatchOutBound',
    method: 'post',
    data,
  })
}
//领用退回生成出库单
export function createUseReturnExport(data) {
  return request({
    url: prePath + '/returnExport',
    method: 'post',
    data,
  })
}
//修改领用出库单
export function changeUseExport(data) {
  return request({
    url: prePath + '/useExport/changeOutBound',
    method: 'post',
    data,
  })
}
//入库操作
export function createUseStorage(data) {
  return request({
    url: prePath + '/useExport/save',
    method: 'put',
    data,
  })
}
//入库分院操作
export function inHospitalBound(data) {
  return request({
    url: prePath + '/useExport/inHospitalBound',
    method: 'put',
    data,
  })
}
//批量入库
export function inBound(data) {
  return request({
    url: prePath + '/export/batchInBound',
    method: 'post',
    data,
  })
}
//领用退回批量入库
export function returnExportInBound(data) {
  return request({
    url: prePath + '/returnExport/batchInBound',
    method: 'post',
    data,
  })
}
//领用退回批量入库
export function cancelPut(data) {
  return request({
    url: prePath + '/returnExport/cancelPut',
    method: 'post',
    data,
  })
}
//领用退回批量入库并上架
export function returnExportInBoundAndPutShelf(data) {
  return request({
    url: prePath + '/returnExport/batchInBoundAndPutShelf',
    method: 'post',
    data,
  })
}
//修改领用出库单
export function updateUseExport(data) {
  return request({
    url: prePath + '/useExport',
    method: 'put',
    data,
  })
}

//领用出库单撤回
export function revokeUseExportStatus(data) {
  return request({
    url: prePath + '/export/revoke',
    method: 'post',
    data,
  })
}

//领用出库单撤回
export function validateRevoke(data) {
  return request({
    url: prePath + '/export/validateRevoke',
    method: 'post',
    data,
  })
}
//领用出库单作废
export function cancelUseExportStatus(data) {
  return request({
    url: prePath + '/export/cancel',
    method: 'post',
    data,
  })
}
export function cargoSpaceManageCancelUseExportStatus(data) {
  return request({
    url: prePath + '/export/cargoSpaceManageCancel',
    method: 'post',
    data,
  })
}
//领用退回出库单撤回
export function revokeUseReturnExportStatus(data) {
  return request({
    url: prePath + '/returnExport/revoke',
    method: 'post',
    data,
  })
}

//领用出库单批量出库
export function exportUseExportStatus(data) {
  return request({
    url: prePath + '/export/batchOutBound',
    method: 'post',
    data,
  })
}

//领用出库单批量出库并入库
export function useExportAndStore(data) {
  return request({
    url: prePath + '/export/batchExportAndStore',
    method: 'post',
    data,
  })
}

//领用退回出库单批量出库
export function exportUseReturnExportStatus(data) {
  return request({
    url: prePath + '/returnExport/batchOutBound',
    method: 'post',
    data,
  })
}

//获取领用出库单明细
export function getUseExportDetailAll(params) {
  return request({
    url: prePath + '/useExportDetail/all',
    method: 'get',
    params,
  })
}
//获取领用出库单明细
export function getScantoPurchReturn(params) {
  return request({
    url: prePath + '/useExportDetail/getScantoPurchReturn',
    method: 'get',
    params,
  })
}

//获取领用出库单明细,包含申请数量和出库仓库的库存数量
export function getUseExportDetailExtAll(data) {
  return request({
    url: prePath + '/exportDetail/customizeList/all',
    method: 'post',
    data,
  })
}

//用于获取已出库数量
export function getUseExportCount(params) {
  return request({
    url: prePath + '/useExportDetail/getExportCount',
    method: 'get',
    params,
  })
}

//获取具体领用出库单明细
export function getUseExportDetail(params) {
  return request({
    url: prePath + '/useExportDetail/' + params,
    method: 'get',
  })
}

//创建领用出库单明细
export function createUseExportDetail(data) {
  return request({
    url: prePath + '/useExportDetail',
    method: 'post',
    data,
  })
}
//修改领用出库单明细
export function updateUseExportDetail(data) {
  return request({
    url: prePath + '/useExportDetail',
    method: 'put',
    data,
  })
}

//打印领用申请
export function printUseApplication(params) {
  return request({
    url: prePath + `/applications/print`,
    method: 'get',
    params,
  })
}

//领用审核生成出库单那智能推荐
export function smartRecommendation(data) {
  return request({
    url: prePath + `/export/smartRecommendation`,
    method: 'post',
    data,
  })
}

//导出领用申请
export function exportUseApplication(data) {
  return request({
    url: prePath + `/application/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//领用申请明细页导出
export function exportUseApplicationDetail(data) {
  return request({
    url: prePath + `/application/excelDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回审核
export function exportUseReturnRatifyApplication(data) {
  return request({
    url: prePath + `/returnApplication/excelRatify`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//领用退回审核-明细导出
export function exportUseReturnRatifyApplicationDetail(data) {
  return request({
    url: prePath + `/returnApplication/excelRatifyDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用审核Excel
export function exportUseRatify(data) {
  return request({
    url: prePath + `/application/excelRatify`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//领用审核明细 导出excel
export function exportUseRatifyDetail(data) {
  return request({
    url: prePath + `/application/excelRatifyDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回申请
export function exportUseReturnApplication(data) {
  return request({
    url: prePath + `/returnApplication/excel`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回申请-明细也导出
export function exportUseReturnApplicationDetail(data) {
  return request({
    url: prePath + `/returnApplication/excelDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//打印领用申请
export function printUseExportApplication(params) {
  return request({
    url: prePath + `/export/print`,
    method: 'get',
    params,
  })
}

//导出领用出库
export function exportUseExportApplication(data) {
  return request({
    url: prePath + `/export/excelExport`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用出库-明细页excel
export function exportUseExportApplicationDetail(data) {
  return request({
    url: prePath + `/export/excelExportDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用入库
export function exportUseStoreApplication(data) {
  return request({
    url: prePath + `/export/excelStore`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
////导出领用入库-明细
export function exportUseStoreApplicationDetail(data) {
  return request({
    url: prePath + `/export/excelStoreDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回出库
export function exportUseReturnExportApplication(data) {
  return request({
    url: prePath + `/returnExport/excelExport`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回出库-明细
export function exportUseReturnExportApplicationDetail(data) {
  return request({
    url: prePath + `/returnExport/excelExportDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回入库
export function exportUseReturnStoreApplication(data) {
  return request({
    url: prePath + `/returnExport/excelStore`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//导出领用退回入库-明细
export function exportUseReturnStoreApplicationDetail(data) {
  return request({
    url: prePath + `/returnExport/excelStoreDetail`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//领用审核转采转申
export function allTurnApplicationDetail(params) {
  return request({
    url: prePath + `/applicationDetails/allTurnApplicationDetail`,
    method: 'get',
    params,
  })
}
//选择个体
export function useExportDetailExtGetUnityData(params) {
  return request({
    url: prePath + `/useExportDetailExt/getUnityData`,
    method: 'get',
    params,
  })
}
//领用退回申请选择个体
export function useApplicationDetailExtGetUnityData(params) {
  return request({
    url: prePath + `/useApplicationDetailExt/getUnityData`,
    method: 'get',
    params,
  })
}
//领用审核转采转申取消
export function applicationsCancel(data) {
  return request({
    url: prePath + `/applications/cancel `,
    method: 'post',
    data,
  })
}
//消耗出库
export function useExportDirectTally(data) {
  return request({
    url: prePath + `/useExport/directTally `,
    method: 'post',
    data,
  })
}
//领用申请生成出库单扫码
export function useApplicationDetailsScans(params) {
  return request({
    url: prePath + `/applicationDetails/scans `,
    method: 'get',
    params,
  })
}
// 领用扫码
export function useApplicationScans(data) {
  return request({
    url: prePath + `/applications/scans`,
    method: 'post',
    data,
  })
}
//领用出库修改扫码
export function useExportDetailScans(params) {
  return request({
    url: prePath + `/useExportDetail/scans `,
    method: 'get',
    params,
  })
}
//领用出库修改添加产品
export function useExportDetailGetCanSelectPage(params) {
  return request({
    url: prePath + `/useExportDetail/getCanSelectPage`,
    method: 'get',
    params,
  })
}

//领用出库打印二维码
export function useExportPrintQrCode(data) {
  return request({
    url: prePath + `/exportDetail/printQrCode`,
    method: 'post',
    data,
  })
}

//领用出库打印单个产品二维码
export function useExportPrintSingleQrCode(data) {
  return request({
    url: prePath + `/exportDetail/printQrCodeVO`,
    method: 'post',
    data,
  })
}

//校验高水位
export function validateDepotHighLevel(data) {
  return request({
    url: prePath + '/application/validateDepotHighLevel',
    method: 'post',
    data,
  })
}
//领用审核-补充库存
export function useApplicationReplenishStock(data) {
  return request({
    url: prePath + '/application/replenishStock',
    method: 'post',
    data,
  })
}
//领用审核-默认仓库
export function getUseAuditGetDefaultExportDepot(data) {
  return request({
    url: prePath + '/application/useAuditGetDefaultExportDepot',
    method: 'post',
    data,
  })
}
//领用校验
export function applicationValidateSubDepot(data) {
  return request({
    url: prePath + '/application/validateSubDepot',
    method: 'post',
    data,
  })
}
//获取领用出库单明细,给领用退回申请使用的明细查询
export function selectForUseReturnApplicationCustomizeList(data) {
  return request({
    url: prePath + '/exportDetail/selectForUseReturnApplicationCustomize',
    method: 'post',
    data,
  })
}
//获取领用出库单明细,给领用退回申请使用的明细扫描
export function scanForUseReturnApplicationCustomizeData(data) {
  return request({
    url: prePath + '/exportDetail/scanForUseReturnApplicationCustomize',
    method: 'post',
    data,
  })
}
